<?php

namespace App\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class CarouselResource extends JsonResource
{
    public function toArray($request)
    {
        return [
            'title' => $this->title,
            'pic_url' => $this->pic_url,
            'action_type' => intval($this->action_type),
            'redirect_url' => $this->redirect_url
        ];
    }
}